﻿using System;
using Microsoft.SmallBasic.Library;
using SmallBasicFun;

namespace Houses
{
	public class Square
	{
		static int height = 40;

		public static void Main()
		{
            //Show the tortoise
            Tortoise.Show();
            //Make the tortoise move as fast as possible
            Tortoise.SetSpeed(4);


		    for (int i = 0; i < 4; i++)
		    {
		        DrawSquare();
                Tortoise.Turn(90);
		    }
            //Do the following 4 times


		}

		public static void DrawSquare()
		{
            //------------- Recipe for DrawSquare

            // Do the following 4 times
		    for (int i = 0; i < 4; i++)
		    {
		        // Change the color of the line the tortoise draws to a random color
                Tortoise.SetPenColor(Colors.GetRandomColor());
                // Move the tortoise 50 pixels
                Tortoise.Move(50);
                // Turn the tortoise 90 degrees to the right
		        Tortoise.Turn(90);
		    }



            // Repeat
		 
		}
	}
}